unit PlayerUnit;

interface

uses common;

type
  Player = class
    function move(height, lastNumber, sortedNumber : integer; arr : array of integer) : integer;
  end;

var
  t: integer;

{constructor Player.move
begin
  t := 0;
end; }


implementation

{ Player }

function Player.move(height, lastNumber, sortedNumber : integer; arr : array of integer): integer;

begin
  if (lastNumber<=50-sortedNumber-4) then
    move:= HIT(lastNumber+4)
  else
  begin
    move:=HIT(47-sortedNumber);
  end;

end;

end.
 